<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script src="/layui.all.js"></script>
<link rel="stylesheet" href="/css/layui.css" id="layui">
<div class="header">
  <div class="header-inner">
        <a href="/front/index.do" class="logo" data-act="icon-click">
        	电影订票网站
        </a>
        <div class="city-container" >
           
           
        </div>


        <div class="nav">
            <ul class="navbar">
                <!-- <li><a href="/front/index.do" data-act="home-click" class="active">首页</a></li> -->
            </ul>
        </div>
		
		<style>
			.user {width:200px;float:right;margin-top:20px;margin-left:100px;}
		</style>
        <div class='user'>
        
        	<c:choose> 
			     <c:when test="${sessionScope.currentUser != null}">    
					<a href='/front/login.jsp'>
		        		<button class="layui-btn layui-btn-normal">欢迎您，${sessionScope.currentUser.name}</button>
		        	</a>
				 </c:when>  
				 
				 <c:otherwise>
					 <a href='/front/login.jsp'>
		        		<button class="layui-btn layui-btn-normal">用户登陆</button>
		        	</a>
				 </c:otherwise>
				     
			</c:choose>
			
			
        
        	
        	<script type="text/javascript">
        	
        		/* function openLoginBox(){
        			layer.open({
  					  title : "用户登陆"
  					  ,area: ['980px', '700px']
  					  ,shade: 0
  					  ,type: 1
  					  ,content: "<iframe style='width:100%;height:90%;overflow:hidden;border:0;' src='/front/login.jsp' ></iframe>" 
  					}); 
        		} */
	        	
        	</script>
        	
        </div>
       

        <form style="float:right;" action="/front/result.do" method="post" target="_blank" class="search-form" data-actform="search-click">
            <input name="moviename" class="search" type="search" maxlength="32" placeholder="找电影" autocomplete="off">
            <input class="submit" type="submit" value="">
            
        </form>

		
    
  </div>
</div>